{include file="./headStart.tpl"}
{literal}
<script type="text/javascript">
$(document).ready(function() {
});
</script>
{/literal}
{include file="./headEnd.tpl"}
<table width="95%" border='1' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="5"> 
    <font style="font-size: 16px"><b>Proforma Detail</b></font>
  </td>
</tr>
<tr>
	<td class="table1" align="center" width="12%">Proforma No : </td>
	<td class="table3">{$productMArray.proformaMasterId}</td>
	<td class="table1" align="right" colspan="2">Date :</td>
	<td class="table3">{$productMArray.date}</td>
</tr>
<tr>
	<td class="table1" align="center">Customer</td>
	<td class="table3" colspan="4">{$productMArray.companyName}</td>
</tr>
<tr>
	<td class="table1" align="center">SR No.</td>
	<td class="table1" align="center">Product</td>
	<td class="table1" align="center">Quantity</td>
	<td class="table1" align="center">Rate</td>
	<td class="table1" align="center">Amount</td>
</tr>
{section name=sec loop=$productDArray}
<tr>
	<td class="table3" align="center">{$smarty.section.sec.rownum}</td>
	<td class="table3" align="left">{$productDArray[sec].itemName}</td>
	<td class="table3" align="center">{$productDArray[sec].qty}</td>
	<td class="table3" align="right">{$productDArray[sec].unitRate}</td>
	<td class="table3" align="right">{$productDArray[sec].amount}</td>
</tr>
{/section}
<tr>
	<td class="table1" align="right" colspan="4">Total :</td>
	<td class="table3" align="right">{$productMArray.totalAmt}</td>
</tr>
<tr>
	<td class="table1" align="right">Remarks :</td>
	<td class="table3" align="left" colspan="4">{$productMArray.notes}</td>
</tr>
<tr>
	<td class="table1" align="center">
	  <a href="proformaDetail.php?proformaMasterId={$productMArray.proformaMasterId}&print=1" class="link" target="_blank">Print</a>
	</td>
</tr>
</table>
{if $productMArray.status == 'D'}
<table width="39%" border='1' cellpadding='1' cellspacing='2' align='center'>
<tr><td colspan="3" class="table1" align="center">INVOICE IS CREATED :-</td></tr>
<tr>
	<td class="table1" width="30%">Invoice No</td>
	<td class="table1" width="1%">:</td>
	<td class="table3">{$productMArray.invoiceNo}</td>
</tr>
<tr>
	<td class="table1">Invoice Date</td>
	<td class="table1">:</td>
	<td class="table3">{$productMArray.invoiceDate}</td>
</tr>
</table>
{/if}
{include file="footer.tpl"}